package com.yun.controller;

//import org.ScalaFile;
import com.sun.xml.internal.bind.v2.runtime.unmarshaller.XsiNilLoader;
import org.ScalaUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import scala.collection.mutable.StringBuilder;

import java.util.ArrayList;
import java.util.List;
@CrossOrigin
@RestController
public class userController {
    @RequestMapping(value = "index")
    public  StringBuffer  index(String path){
       try {
           final StringBuffer stringBuffer = ScalaUtil.getDate(path);


        System.out.println(12312321);
        System.out.println(0000000000000000);




        return stringBuffer;
       }catch (Exception e){
           return new StringBuffer("请求失败 请检查路径");
       }
    }
}
